package com.itheima;

import com.itheima.config.SpringConfig;
import com.itheima.dao.BookDao;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


/**
 * 参数的获取：
 * 获取后可以先将参数修改一下再传进去
 * 环绕通知形参用ProceedingJoinPoint,其他的用JoinPoint
 * 方法上只能写这两个形参
 */
public class App {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext cx = new AnnotationConfigApplicationContext(SpringConfig.class);

        BookDao bookDao = cx.getBean(BookDao.class);

        bookDao.findName(1);
    }
}
